﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Bee.Logging;
using Bee.Util;

namespace Bee.Admin
{
    public class AdminLogImpl : ILogImpl
    {
        public void ProcessLog(LogLevel level, string name, string message, Exception exception)
        {
            if(level == LogLevel.Core)
            {
                WebSocketManager.Instance.SendToAll(string.Format("{0}【{3}】 \r\n{1} \r\n{2}", GeneralUtil.CurrentTime, message, exception, System.Threading.Thread.CurrentThread.ManagedThreadId));
            }
        }
    }
}
